package com.wx.wxsecondskill.enums;

import com.wx.core.enums.EnumError;

/**
 * @ClassName SecondsKillEnumError
 * @Author wx
 * @Description 秒杀系统异常枚举集合
 * @Date 2018-11-15-22:35
 */
public class SecondsKillEnumError {

    /**
     * @Author wx
     * @Description 秒杀异常
     * @Date 2018-9-4
     */
    public enum SecondsKillStockError implements EnumError {
        /** 权限模块不存在 */
        SECONDS_KILL_STOCK_ERROR_0(0, "库存不足"),
        SECONDS_KILL_ERROR_1(1, "您已经秒杀过该商品,请勿重复秒杀"),
      ;
        private Integer codeError;

        private String messageError;

        private SecondsKillStockError(int codeError, String messageError) {
            this.codeError = codeError;
            this.messageError = messageError;
        }

        @Override
        public Integer getCodeError() {
            return codeError;
        }

        @Override
        public String getMessageError() {
            return messageError;
        }
    }
}
